package com.qna.repository;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.qna.pojo.User;


@Repository("userRepository")
public class UserRepository extends AbstractRepository<User> {
    
	@SuppressWarnings("unchecked")
    public List<User> getAll() {
        
        return entityManager.createQuery("SELECT u FROM User u ORDER BY u.username").getResultList();
        
    }
	
	
}
